/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

html {
    height: 100%;
    width: 100%;
}

/* 主容器 */
.main-container {
    height: 100vh;
    width: 100%;
}

/* 侧边栏 */
.aside {
    background-color: #001529;
    color: #fff;
    transition: width 0.3s;
    overflow-x: hidden;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    height: 100%;
}

.logo {
    height: 64px;
    display: flex;
    align-items: center;
    padding-left: 24px;
    background-color: #002140;
}

.logo img {
    height: 32px;
    margin-right: 12px;
}

.logo span {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    color: white;
}

.el-menu {
    border-right: none !important;
}

.el-menu-vertical:not(.el-menu--collapse) {
    width: 220px;
}

/* 头部 */
.header {
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
}

.toggle-sidebar {
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0 12px;
    transition: color 0.3s;
}

.toggle-sidebar:hover {
    color: #1890ff;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0 12px;
}

.user-profile i.fas {
    font-size: 20px;
    margin-right: 8px;
}

/* 主内容区域 */
.el-main {
    padding: 24px;
    background-color: #f0f2f5;
    overflow-y: auto;
}

/* 页面标题 */
.page-title {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
}

/* 卡片样式 */
.dashboard-card {
    margin-bottom: 24px;
}

.dashboard-card .el-card__header {
    padding: 16px 20px;
    font-weight: 500;
}

.dashboard-card-content {
    padding: 16px;
    text-align: center;
}

.dashboard-card-value {
    font-size: 36px;
    font-weight: 500;
    color: #1890ff;
    margin-bottom: 8px;
}

.dashboard-card-link {
    color: #1890ff;
    text-decoration: none;
}

.dashboard-card-link:hover {
    text-decoration: underline;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* 同步消息样式 */
.sync-success {
    margin-top: 16px;
    padding: 12px;
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 4px;
    color: #52c41a;
}

.sync-error {
    margin-top: 16px;
    padding: 12px;
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 4px;
    color: #ff4d4f;
}

/* 表格样式 */
.table-container {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.table-title {
    font-size: 18px;
    font-weight: 500;
}

.pagination-container {
    margin-top: 16px;
    text-align: right;
}

/* 表单样式 */
.form-container {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    padding: 24px;
}

.form-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 16px;
}

.form-title {
    font-size: 18px;
    font-weight: 500;
}

.form-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    text-align: right;
}

.form-item-tip {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.upstream-node {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

/* 令牌生成页面 */
.token-container {
    max-width: 800px;
    margin: 0 auto;
}

.token-result {
    margin-top: 24px;
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    padding: 16px;
    border-radius: 4px;
}

.token-value {
    word-break: break-all;
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
}

/* 空状态 */
.empty-plugins,
.empty-upstream {
    text-align: center;
    padding: 32px;
    color: #999;
}

.empty-plugins i,
.empty-upstream i {
    font-size: 32px;
    margin-bottom: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .aside {
        width: 80px !important;
    }
    
    .logo span {
        display: none;
    }
    
    .el-menu--collapse {
        width: 80px;
    }
} 